package com.bird.component.lang.util.paramcheck.customize

import com.bird.component.lang.util.paramcheck.inter.ICheckBean


class CustomizeCheckBean<T>(
    override val tip: String,
    override val value: T,
    private val typedPassTest: (T) -> Boolean,
) : ICheckBean {
    @Suppress("UNCHECKED_CAST")
    override val passTest: (Any?) -> Boolean = {
        typedPassTest(it as T)
    }


}
